from django.urls import path
from . import views
from .views import PersonOne,PersonList

app_name='myapp'
urlpatterns=[
    path('',views.index,name='index'),
    path('persons',views.persons,name='persons'),
    path('getperson/<int:pid>',views.getPerson,name='getperson'),
    path('searchperson',views.searchPerson,name='searchperson'),
    path('personone/<int:pk>',PersonOne.as_view(),name='personone'),
    path('personlist',PersonList.as_view(),name='personlist'),
    path('regist',views.register,name='regist'),
    path('personform',views.personForm,name='personform'),

]
